package tressset;

import java.util.TreeSet;

public class Demo1 {
    public static void main(String[] args) {
        TreeSet<Student>list  =  new TreeSet<>();
        Student s1 = new Student("wamazi",80,80,80);
        Student s2 = new Student("ergouzi",70,60,90);
        Student s3 = new Student("dasazi",100,100,90);
        list.add(s1);
        list.add(s2);
        list.add(s3);
        for (Student student : list) {
            System.out.println(student);
        }
    }
}
